package projetcvs;

/**
 * Write a description of class Maitre here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Maitre
{
    // instance variables - replace the example below with your own
    private Ninja ninja;
    private String nom;
    
    /**
     * Constructor for objects of class Maitre
     */
    public Maitre()
    {
        ninja = new Ninja();
        nom = new String("");
    }

    public Ninja getNinja() {
        return ninja;
    }
    
    public void setNinja(Ninja ninja) {
        this.ninja = ninja;
    }
    
    public String getNom() {
        return nom;
    }
    
    public void setNom(String nom) {
        this.nom = nom;
    }
    public void choisirNinja(Ninja ninja) {
        if(this.ninja == null || !this.ninja.getNom().equals(ninja.getNom())) 
            this.ninja = ninja;
    }
}
